<template>
  <div>
    <div class="header">
      <van-row>
        <van-col span="2" ><van-icon name="arrow-left" size="20px" @click="goBack"/></van-col>
        <van-col span="20"><span>病情记录</span></van-col>
        <van-col span="2"><van-icon name="add-o" size="20px" /></van-col>
      </van-row>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Header',
  methods:{
    goBack(){
      this.$router.go(-1)
    }
  }
}
</script>

<style scoped>
.header {
  height: 50px;
  background-color: #bfa;
  text-align: center;
  line-height: 50px;
  letter-spacing: 5px;
}
</style>